import { createDiscreteApi } from 'naive-ui'

const { message, dialog } = createDiscreteApi(['message', 'dialog'])

export const IMessage = ({ content, type = 'success' }: Message) => {
	message.create(content, {
		type: type
	})
}
